package com.zxj.shop.admin.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zxj.shop.admin.mapper.ProductMapper;
import com.zxj.shop.admin.service.ProductService;
import com.zxj.shop.admin.shiro.vo.ProductResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    ProductMapper productMapper;

    @Override
    public IPage<ProductResponse> page(Page<ProductResponse> objectPage) {
        return productMapper.page(objectPage);
    }
}
